// 写在一个文件里

import myEvent from "./observe_fun.js";

var div = document.getElementById("showcount");
myEvent().listen('add',function(count){
  console.log(333333)
    div.innerHTML = count;
});

var count = 0;
var button = document.getElementById("count");
button.onclick = function(){
  
  myEvent().trigger("add",count++);
}